package collection;

import src.class1.Pet;

import java.util.HashMap;

public class HashMapDemo {
    public static void main(String[] args) {
        HashMap<Pet,String> hm = new HashMap<Pet,String>();



        String[] a = new String[] {//String toString
            hm.put(new Pet("啊旺", "张淳柏"), "1001"),
            hm.put(new Pet("啊才", "张力力"), "1002"),
            hm.put(new Pet("啊吉", "何张琳"), "1003"),
            hm.put(new Pet("啊但", "谢加利"), "1004"),
        };

        System.out.println(hm);
        for (String b : a) {

        }


    }
}
